package org.liang.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.liang.base.domain.BaseDomain;

import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Department extends BaseDomain {
    @ApiModelProperty(value = "部门id")
    private Long id;
    @ApiModelProperty(value = "部门名称")
    private String name;
    @ApiModelProperty(value = "部门介绍")
    private String intro;
    @ApiModelProperty(value = "部门创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    @ApiModelProperty(value = "部门修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;
    @ApiModelProperty(value = "部门主管")
    private Employee manager;
    @ApiModelProperty(value = "上级部门")
    private Department parent;
    @ApiModelProperty(value = "路径")
    private String path;
    @ApiModelProperty(value = "状态")
    private Integer state;

    //查询包含的子集
    private List<Department> children;

}
